<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>购物车</title>
	<style type="text/css">

		#a{
			width:1000px;
			height:500px;
			margin:0 auto;
			margin-top: 100px;
			/*border:1px solid blue;*/
		}
		#b{
			width:300px;
			height:400px;
			margin:10px;
			/*border:1px solid red;*/
			float:left;
		}
		li{
			/*float:left;*/
			margin-left:5px;
			list-style: none;
			margin-top: 5px;
		}
	</style>
</head>
<body>
	<div id="a">
		@foreach($products as $v)
		<div id="b">
		<img src="/img/{{$v['id']}}.jpg" width=300>
		<ul>
			<li>
				{{$v['name']}}
			</li>
			<li>
				{{$v['price']}}
			</li>
			<li>
				{{$v['des']}}
			</li>
		</ul>
		
		<a href="/shop/addcart/{{$v['id']}}">加入购物车</a>
		</div>
		@endforeach
	</div>
</body>
</html>